const contest_problem = {
    "score": 150,
    "userScore": 50,
    "passingScore": 0,
    "evaluation": "",
    "parts": [
        {
            "id": 964,
            "score": 50,
            "userScore": 50,
            "titleZh": "客观题",
            "titleEn": "problem",
            "problems": [
                {
                    "id": 6143,
                    "status": 1,
                    "type": 1,
                    "score": 10,
                    "titleZh": "在做高精度数处理时，将以字符串输入的数字逆序存入数组中时，以下哪个选项中代码是正确的（）\n",
                    "titleEn": "",
                    "isOptional": false,
                    "sourceType": 0,
                    "autoCheckTag": 0,
                    "checkTag": 0
                },
                {
                    "id": 6144,
                    "status": 1,
                    "type": 1,
                    "score": 10,
                    "titleZh": "做高精度加法时，以下代码中，对答案数组c处理进位部分是正确的是",
                    "titleEn": "",
                    "isOptional": false,
                    "sourceType": 0,
                    "autoCheckTag": 0,
                    "checkTag": 0
                },
                {
                    "id": 6146,
                    "status": 1,
                    "type": 1,
                    "score": 10,
                    "titleZh": "当一个10位数减去一个5位数时，结果不可能是",
                    "titleEn": "",
                    "isOptional": false,
                    "sourceType": 0,
                    "autoCheckTag": 0,
                    "checkTag": 0
                },
                {
                    "id": 6145,
                    "status": 1,
                    "type": 5,
                    "score": 10,
                    "titleZh": "在比较两个高精度数字大小时，应该如何操作？",
                    "titleEn": "",
                    "isOptional": false,
                    "sourceType": 0,
                    "autoCheckTag": 0,
                    "checkTag": 0
                },
                {
                    "id": 6151,
                    "status": 1,
                    "type": 5,
                    "score": 10,
                    "titleZh": "简述一下高精度加法A+B的解题步骤\n",
                    "titleEn": "",
                    "isOptional": false,
                    "sourceType": 0,
                    "autoCheckTag": 0,
                    "checkTag": 0
                }
            ]
        },
        {
            "id": 963,
            "score": 100,
            "userScore": 0,
            "titleZh": "编程题",
            "titleEn": "Program",
            "problems": [
                {
                    "id": 5933,
                    "status": 0,
                    "type": 7,
                    "score": 0,
                    "titleZh": "最大减最小",
                    "titleEn": "high-precision addition 1",
                    "isOptional": false,
                    "sourceType": 0,
                    "autoCheckTag": 0,
                    "checkTag": 0
                },
                {
                    "id": 6142,
                    "status": 0,
                    "type": 7,
                    "score": 0,
                    "titleZh": "蜜蜂路线（强化版）",
                    "titleEn": "bee route",
                    "isOptional": true,
                    "sourceType": 0,
                    "autoCheckTag": 0,
                    "checkTag": 0
                }
            ]
        }
    ],
    "isReadEvaluation": 0
}

const contest_info = {
    "parentId": 15011,
    "courseName": "2024江汉区秋季平行班",
    "contestType": "homework",
    "titleZh": "信友队V3.1-040.递归一般运用-课后作业",
    "titleEn": "40",
    "status": 3,
    "startTime": 0,
    "endTime": 3153600000,
    "userStatus": 3,
    "userStartTime": 1730800937,
    "userEndTime": 1730812727,
    "config": {
        "program": {
            "personalScoreVisibility": true,
            "highScoreProgramVisibility": true,
            "downloadDataEnable": true,
            "downloadDataCount": 10,
            "scoreType": 0
        },
        "general": {
            "gradeRelease": true,
            "paperRelease": true,
            "answerRelease": true,
            "tipRelease": true,
            "submission": true,
            "submitType": "timedSubmission",
            "submissionTimed": 30
        },
        "homeworkNoLimit": true
    }
}

// 填空题
const problem_info_type_5 = {
    "id": 6151,
    "type": 5,
    "statementZh": "简述一下高精度加法A+B的解题步骤\n",
    "statementEn": "",
    "totalScore": 10,
    "blankNumber": 0,
    "userAnswer": [],
    "url": "",
    "expireTime": 0,
    "content": "",
    "videoId": "",
    "playAuth": "",
    "sourceType": 0
}

// 填空题提交信息
const problem_type_6_solution = {
    "problemId": 6145,
    "status": 1,
    "accuracy": 0.07317073170731707,    // 全站正确率
    "accuracyClass": 0,                 // 班级正确率
    "score": 10,
    "evaluation": "",
    "analysisZh": "",
    "analysisEn": "",
    "answer": [                         // 用户提交的答案
        "用两个字符串存储后，先比较长度，长度相同再比较大小",
        ""
    ],
    "correct": [
        true,                           // 是否正确
        true
    ],
    "tag": [
        {
            "nameZh": "基础",
            "nameEn": "USACO Bronze"
        },
        {
            "nameZh": "高精度",
            "nameEn": "High-precision"
        }
    ]
}

// 选择题
const problem_info_type_1 = {
    "id": 6144,
    "type": 1,
    "statementZh": "做高精度加法时，以下代码中，对答案数组c处理进位部分是正确的是",
    "statementEn": "",
    "totalScore": 10,
    "blankNumber": 0,
    "userAnswer": [],
    "options": [
        {
            "id": 16366,
            "sequence": 1,
            "contentZh": "```\nfor(...)//遍历c数组\n{\n\tc[i] %= 10;\n\tc[i + 1] += c[i] / 10;\n}\n```",
            "contentEn": ""
        },
        {
            "id": 16367,
            "sequence": 2,
            "contentZh": "```\nfor(...)//遍历c数组\n{\n\tc[i + 1] += c[i] / 10;\n\tc[i] %= 10;\n}\n```",
            "contentEn": ""
        },
        {
            "id": 16368,
            "sequence": 3,
            "contentZh": "```\nfor(...)//遍历c数组\n{\n\tc[i] %= 10;\n\tc[i + 1] += 1;\n}\n```",
            "contentEn": ""
        },
        {
            "id": 16369,
            "sequence": 4,
            "contentZh": "```\nfor(...)//遍历c数组\n{\n\tc[i + 1] += 1;\n\tc[i] %= 10;\n}\n```",
            "contentEn": ""
        }
    ],
    "url": "",
    "expireTime": 0,
    "content": "",
    "videoId": "",
    "playAuth": "",
    "sourceType": 0
}

// 选择题提交信息
const problem_type_1_solution = {
    "problemId": 6144,
    "status": 1,
    "accuracy": 0.47297297297297297,
    "accuracyClass": 0.4074074074074074,
    "score": 10,
    "evaluation": "",
    "analysisZh": "",
    "analysisEn": "",
    "answer": [
        "16367"
    ],
    "correct": [
        true
    ],
    "tag": [
        {
            "nameZh": "初学",
            "nameEn": "Beginner"
        },
        {
            "nameZh": "高精度",
            "nameEn": "High-precision"
        }
    ]
}

// 编程题信息
const problem_info_type_7 = {
    "code": 200,
    "data": {
        "id": 5933,
        "type": 7,
        "statementZh": "给定n个整数，求 最大值-最小值",
        "statementEn": "Given n integers, find the maximum-minimum",
        "totalScore": 50,
        "blankNumber": 0,
        "userAnswer": [],
        "url": "",
        "expireTime": 0,
        "content": "",
        "videoId": "",
        "playAuth": "",
        "sourceType": 0,
        "programId": 7704,
        "origin": "xjoi",
        "titleZh": "最大减最小",
        "titleEn": "high-precision addition 1",
        "inputFormatZh": "第一行一个整数n\n接下来n行，每行一个整数a",
        "inputFormatEn": "The first line contains an integer n\nNext n lines, one integer per line a",
        "outputFormatZh": "一行，一个整数表示结果",
        "outputFormatEn": "Output by topic",
        "constraintZh": "n<=10\n1<=a<=10^100",
        "constraintEn": "n<=10\n1<=a<=10^100",
        "explanationZh": "样例输入1：\n\n4\n121\n3321\n423\n21321\n\n样例输出1：\n\n21200",
        "explanationEn": "Sample input 1:\n\n4\n121\n3321\n423\n21321\n\nSample output 1:\n\n21200",
        "timeLimit": "1000ms",
        "memoryLimit": "262144kB",
        "outCases": [
            "uoj1.ans",
            "uoj2.ans",
            "uoj3.ans",
            "uoj4.ans",
            "uoj5.ans",
            "uoj6.ans",
            "uoj7.ans",
            "uoj8.ans",
            "uoj9.ans",
            "uoj10.ans"
        ],
        "examples": [
            {
                "input": "4\n121\n3321\n423\n21321",
                "output": "21200"
            }
        ]
    },
    "msg": "Success"
}

// 提交记录
const problem_submission_list =  {
    "total": 0,
    "best": {
        "id": 0,
        "score": 0,
        "createdAt": 0,
        "answerStatus": 0,
        "status": "",
        "language": "",
        "submitId": 0,
        "autoCheckTag": 0,
        "checkTag": 0,
        "sourceType": 0
    },
    "latest": {
        "id": 0,
        "score": 0,
        "createdAt": 0,
        "answerStatus": 0,
        "status": "",
        "language": "",
        "submitId": 0,
        "autoCheckTag": 0,
        "checkTag": 0,
        "sourceType": 0
    },
    "list": null
}

const problem_type_7_solution ={
    "problemId": 5933,
    "status": 0,
    "accuracy": 0,
    "accuracyClass": 0.7916666666666666,
    "score": 0,
    "evaluation": "",
    "analysisZh": "\n$$video\n9059e82af7ac71ee9cfd4531958c0102\n$$",
    "analysisEn": "",
    "tag": [
        {
            "nameZh": "初学",
            "nameEn": "Beginner"
        },
        {
            "nameZh": "高精度",
            "nameEn": "High-precision"
        },
        {
            "nameZh": "简单变化",
            "nameEn": "Simple change "
        },
        {
            "nameZh": "基础算法1",
            "nameEn": "English Tag"
        }
    ]
}

// 提示
const problem_tip = {
    "contentZh": "\n```cpp showLineNumbers\n#include<bits/stdc++.h>\nusing namespace std;\nint main(){\n\tint n,k;\n\tcin>>n;\n\tstring s;\n\tcin>>s;\n\tstring s1=s,s2=s;\n\tfor(int i=2;i<=n;i++){\n\t\tcin>>s;\n\t\tif(s.size()>s1.size() || s.size()==s1.size()&&s>s1) s1=s; //s1存储最大值 \n\t\t________________________________________________________; //s2存储最小值\t\n\t} \n\t\n\tint a[1001]={},b[1001]={},c[2001]={}; \t\t\n\tint la=s1.size(),lb=s2.size();\n\tfor(int i=0;i<la;i++) a[la-i]=s1[i]-'0'; //将被减数是s1整理到整型a数组中 \n\t_______________________________________; //将减数是s2整理到整型b数组中，c数组存储差 \n\t\n\tint len=la;\n\tfor(int i=1;i<=len;i++) c[i]=__________; //对应位相减 \n\t\n\tfor(int i=1;i<=len;i++){\n\t\tif(c[i]<0){ //处理借位 \n\t\t\t_____;\n\t\t\t_____;\n\t\t}\n\t}\n\t\n\twhile(c[len]==0) ____; //处理前导零 \n\t\n\tfor(int i=_______) cout<<c[i]; //打印结果 \n\treturn 0;\n}\n```\n\n$$video\nee630f50b28471edbf930764a0ec0102\n$$\n\n\n",
    "contentEn": ""
}

// 成绩 答题卡
const content_score_card = {
    "userScore": 150,
    "totalScore": 150,
    "problems": [
        {
            "modified": false,
            "number": "1",
            "userScore": 10,
            "totalScore": 10,
            "knowledgeZh": [
                "基础",
                "递归"
            ],
            "knowledgeEn": [
                "USACO Bronze",
                "Recursion"
            ]
        },
        {
            "modified": false,
            "number": "2",
            "userScore": 10,
            "totalScore": 10,
            "knowledgeZh": [
                "基础",
                "递归"
            ],
            "knowledgeEn": [
                "USACO Bronze",
                "Recursion"
            ]
        },
        {
            "modified": false,
            "number": "3",
            "userScore": 10,
            "totalScore": 10,
            "knowledgeZh": [
                "基础",
                "递归"
            ],
            "knowledgeEn": [
                "USACO Bronze",
                "Recursion"
            ]
        },
        {
            "modified": false,
            "number": "4",
            "userScore": 10,
            "totalScore": 10,
            "knowledgeZh": [
                "普及",
                "函数"
            ],
            "knowledgeEn": [
                "USACO Silver",
                "Function"
            ]
        },
        {
            "modified": false,
            "number": "5",
            "userScore": 10,
            "totalScore": 10,
            "knowledgeZh": [
                "初学",
                "递归"
            ],
            "knowledgeEn": [
                "Beginner",
                "Recursion"
            ]
        },
        {
            "modified": false,
            "number": "6",
            "userScore": 50,
            "totalScore": 50,
            "knowledgeZh": [
                "基础",
                "递归",
                "简单变化",
                "基础算法2"
            ],
            "knowledgeEn": [
                "USACO Bronze",
                "Recursion",
                "Simple change ",
                "English Tag"
            ]
        },
        {
            "modified": false,
            "number": "7",
            "userScore": 50,
            "totalScore": 50,
            "knowledgeZh": [
                "基础",
                "递归",
                "简单变化"
            ],
            "knowledgeEn": [
                "USACO Bronze",
                "Recursion",
                "Simple change "
            ]
        }
    ],
    "parts": [
        {
            "titleZh": "单选题",
            "titleEn": "Multi-Choice(Single Answer)",
            "userScore": 50,
            "totalScore": 50
        },
        {
            "titleZh": "编程题",
            "titleEn": "Program",
            "userScore": 100,
            "totalScore": 100
        }
    ]
};

// 比赛配置
const exam_config = {
    "type": "homework",
    "homework": {
        "limitTime": 3153600000,
        "noLimit": true
    },
    "general": {
        "gradeRelease": {
            "type": "afterExam"
        },
        "rankListRelease": {
            "type": "afterGradeRelease"
        },
        "paperRelease": {
            "type": "afterExam"
        },
        "answerRelease": {
            "type": "afterExam"
        },
        "submission": {
            "type": "timedSubmission",
            "submissionTimed": 60
        },
        "tipRelease": {
            "type": "afterExam"
        },
        "disorder": {
            "part": false,
            "program": false,
            "objective": false,
            "combinationInternal": false,
            "singleOption": false,
            "multipleOption": false
        },
        "restriction": {
            "type": "never"
        }
    },
    "rank": {
        "rankListShowRealName": true,
        "rankShowUserLabel": false
    },
    "program": {
        "personalScoreVisibility": "always",
        "rankingMethod": "score",
        "highScoreProgramVisibility": "never",
        "downloadDataEnable": true,
        "downloadDataCount": 10,
        "scoreTypeInMatch": "maxScore",
        "lang": [
            "gcc",
            "g++",
            "g++11",
            "g++14",
            "g++17",
            "python2.7",
            "python3.8",
            "java8",
            "fpc"
        ]
    }
}